package com.swinw.asumall.product.feign;

import com.swinw.common.to.SkuEsModel;
import com.swinw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "search-service")
public interface SearchFeignService {
    @RequestMapping("/search/save/product")
    public R saveSkuToEsAndUp(@RequestBody List<SkuEsModel> skuEsModels);
}
